<%@ taglib prefix="s" uri="/struts-tags"%>


<s:set name="adminLoginCheck" value="%{#session.adminLogin}" />
	<!--<s:if test="%{#adminLoginCheck!=null}">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Product Details</title>
<link href="css/productdetail.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="javascript/jquery.js"></script>
<script type="text/javascript" src="javascript/cloud-zoom.1.0.2.min.js"></script>



<div class="demo">
	<div class="zoom-section">
		<div class="zoom-small-image">
			<a href='img/product_line_id/<s:property value="id" />A.jpg'
				class='cloud-zoom' id='zoom1' rel="adjustX:10, adjustY:-4"> <img
				src="img/product_line_id/<s:property value="id" />A.jpg" width="240"
				height="320" alt='' title="Optional title display" 
				onerror="this.src='img/product_line_id/noPhoto.jpg'" />
			</a>
		</div>
		<div class="zoom-desc">
			<h3>Product details</h3>
			<p>
				<a href='img/product_line_id/<s:property value="id" />A.jpg'
					class='cloud-zoom-gallery' title='Red'
					rel="useZoom: 'zoom1', smallImage: 'img/product_line_id/<s:property value="id" />A.jpg' ">
					<img width="48" height="64" class="zoom-tiny-image"
					src="img/product_line_id/<s:property value="id" />A.jpg" 
					onerror="this.src='img/product_line_id/noPhoto.jpg'" />
				</a> <a href='img/product_line_id/<s:property value="id" />B.jpg'
					class='cloud-zoom-gallery' title='Blue'
					rel="useZoom: 'zoom1', smallImage: 'img/product_line_id/<s:property value="id" />B.jpg'">
					<img width="48" height="64" class="zoom-tiny-image"
					src="img/product_line_id/<s:property value="id" />B.jpg"
					alt="Thumbnail 2" onerror="this.src='img/product_line_id/noPhoto.jpg'" />
				</a> <a href='img/product_line_id/<s:property value="id" />C.jpg'
					class='cloud-zoom-gallery' title='Blue'
					rel="useZoom: 'zoom1', smallImage: 'img/product_line_id/<s:property value="id" />C.jpg' ">
					<img width="48" height="64" class="zoom-tiny-image"
					src="img/product_line_id/<s:property value="id" />C.jpg"
					alt="Thumbnail 3" onerror="this.src='img/product_line_id/noPhoto.jpg'" />
				</a> <a href='img/product_line_id/<s:property value="id" />D.jpg'
					class='cloud-zoom-gallery' title='Blue'
					rel="useZoom: 'zoom1', smallImage: 'img/product_line_id/<s:property value="id" />D.jpg' ">
					<img width="48" height="64" class="zoom-tiny-image"
					src="img/product_line_id/<s:property value="id" />D.jpg"
					alt="Thumbnail 4" onerror="this.src='img/product_line_id/noPhoto.jpg'" />
				</a>

			</p>
			<s:iterator value="product_line">
	
		<table >
	
	<tr><td>Name:</td>
	<td><s:property value="name" /></td></tr>
		
		<tr><td>Season:</td>
	<td>
	<s:property value="season.getName()" /></td></tr>
		 <tr><td>Gender:</td>
	<td>
	<s:property value="gender.getName()" /></td></tr>
	 <tr><td>Category:</td>
	<td>
	<s:property value="category.getName()" /></td></tr>
		 <tr><td>Type:</td>
	<td>
	<s:property value="type.getName()" /></td></tr>
		
		<tr><td>Price:</td>
	<td>
	
	
	
	<s:property value="price" /></td></tr>
		<tr><td>Designer:</td>
	<td>
	<a
						href="<s:url action='adminDesignerEdit'>
						<s:param name='id' ><s:property value='Designer.getId()' /></s:param></s:url>">
						<s:property value="Designer.getName()" />
						</a>
</td></tr>
	</table>

	</s:iterator>


	<s:form action="adminProductDetailEdit" namespace="/">
		<s:hidden name="id" value="%{id}" />
		<s:submit name="editProduct" value="Edit product">
		</s:submit>
	</s:form>
	
<%-- 	<s:form action="adminProductItemAllApproval" namespace="/">
						<s:hidden name="id" value="%{id}" />
						<s:submit name="productApproval" value="Approval All">
						</s:submit>
		</s:form>
	 --%>
	 
	 
		</div>
	</div>



	<table style="width: 100%">

		<tr style="background: #DDD">
			<td>Id</td>
			<td>Size</td>
			<td>Color</td>
			<td>Quantity</td>
			<td>Approval</td>
			<td>Edit</td>
		</tr>


		<s:iterator value="product_items">

			<tr>
				<td><s:property value="id" /></td>

				<td><s:property value="size.getName()" /></td>
				<td><s:property value="color.getName()" /></td>
				<td><s:property value="quantity" /></td>
				<td><s:property value="approvalString" /></td>

				<td><s:form action="adminProductItemEdit" namespace="/">
						<s:hidden name="id" value="%{id}" />
						<s:submit name="editProduct" value="Edit">
						</s:submit>
					</s:form></td>



			</tr>
		</s:iterator>

	</table>



</div>

</s:if>-->


<s:set name="LoginCheck" value="%{#session.login}" />
	<s:if test="%{#LoginCheck!=null}">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Product Details</title>
<link href="css/productdetail.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="javascript/jquery.js"></script>
<script type="text/javascript" src="javascript/cloud-zoom.1.0.2.min.js"></script>



<div class="demo">
	<div class="zoom-section">
		<div class="zoom-small-image">
			<a href='img/product_line_id/<s:property value="id" />A.jpg'
				class='cloud-zoom' id='zoom1' rel="adjustX:10, adjustY:-4"> <img
				src="img/product_line_id/<s:property value="id" />A.jpg" width="240"
				height="320" alt='' title="Optional title display" onerror="this.src='img/product_line_id/noPhoto.jpg'"/>
			</a>
		</div>
		<div class="zoom-desc">
			<h3>Product details</h3>
			<p>
				<a href='img/product_line_id/<s:property value="id" />A.jpg'
					class='cloud-zoom-gallery' title='Red'
					rel="useZoom: 'zoom1', smallImage: 'img/product_line_id/<s:property value="id" />A.jpg' ">
					<img width="48" height="64" class="zoom-tiny-image"
					src="img/product_line_id/<s:property value="id" />A.jpg" 
					onerror="this.src='img/product_line_id/noPhoto.jpg'" /> 
				</a> <a href='img/product_line_id/<s:property value="id" />B.jpg'
					class='cloud-zoom-gallery' title='Blue'
					rel="useZoom: 'zoom1', smallImage: 'img/product_line_id/<s:property value="id" />B.jpg'">
					<img width="48" height="64" class="zoom-tiny-image"
					src="img/product_line_id/<s:property value="id" />B.jpg" 
					alt="Thumbnail 2" onerror="this.src='img/product_line_id/noPhoto.jpg'" />
				</a> <a href='img/product_line_id/<s:property value="id" />C.jpg'
					class='cloud-zoom-gallery' title='Blue'
					rel="useZoom: 'zoom1', smallImage: 'img/product_line_id/<s:property value="id" />C.jpg' ">
					<img width="48" height="64" class="zoom-tiny-image"
					src="img/product_line_id/<s:property value="id" />C.jpg"
					alt="Thumbnail 3" onerror="this.src='img/product_line_id/noPhoto.jpg'" />
				</a> <a href='img/product_line_id/<s:property value="id" />D.jpg'
					class='cloud-zoom-gallery' title='Blue'
					rel="useZoom: 'zoom1', smallImage: 'img/product_line_id/<s:property value="id" />D.jpg' ">
					<img width="48" height="64" class="zoom-tiny-image"
					src="img/product_line_id/<s:property value="id" />D.jpg"
					alt="Thumbnail 4" onerror="this.src='img/product_line_id/noPhoto.jpg'" />
				</a>

			</p>
			<s:iterator value="product_line">
	
		<table >
	
	<tr><td>Name:</td>
	<td><s:property value="name" /></td></tr>
		
		<tr><td>Season:</td>
	<td>
	<s:property value="season.getName()" /></td></tr>
		 <tr><td>Gender:</td>
	<td>
	<s:property value="gender.getName()" /></td></tr>
		 <tr><td>Type:</td>
	<td>
	<s:property value="type.getName()" /></td></tr>
		 <tr><td>Category:</td>
	<td>
	<s:property value="category.getName()" /></td></tr>
		<tr><td>Price:</td>
	<td>
	<s:property value="price" /></td></tr>
		<tr><td>Designer:</td>
	<td>
	<s:property value="Designer.getName()" /></td></tr>
	</table>

	</s:iterator>


		</div>
	</div>



	<table style="width: 100%">

		<tr style="background: #BBB">
			<td>Size</td>
			<td>Color</td>
			<td>Quantity</td>
			<td>Approval</td>
		</tr>


		<s:iterator value="product_items">

			<tr>

				<td><s:property value="size.getName()" /></td>
				<td><s:property value="color.getName()" /></td>
				<td><s:property value="quantity" /></td>
				<td><s:property value="approvalString" /></td>




			</tr>
		</s:iterator>

	</table>



</div>

</s:if>

